﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ListtypeFilter>" %>
<%@ Import Namespace="SmartIMS.Mvc.Entities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	List
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% using (Html.BeginForm())
    {%>
    <table border="0" cellpadding="0" width="100%" cellspacing="0">
        <col width="25%" /><col width="25%" /><col width="25%" /><col width="25%" />
        <tr>
            <td class="normal_title" colspan="4" >Danh sách danh mục</td>
        </tr>
        <tr style="height:30px">
            <td class="normal_label">
                Lọc theo tên loại danh mục 
            </td>
            <td >
                <%=Html.HiddenFor(model => model.ListtypeId) %>
                <%=Html.HiddenFor(model => model.ListSelected) %>
                <%=Html.TextBoxFor(model => model.NameFilter) %>
            </td>
            <td align="left">
                <input type="button" value="Filter" name="btnFilter" class="button_filter" onclick="btnFilterOnclick('/Listtype/List','Page');"/>
            </td>
            <td></td>
        </tr>    
        <tr>
            <td class="normal_error_message" colspan="4">
                <%=ViewData["ErrorMessage"] %>
            </td>
        </tr>           
    </table> 
    <%=Html.DataGrid<Listtype>(Model.List, new GridColumns[] {
                                    new GridColumns { Title = "#",Name = "ListtypeId",Type = "CheckBox",Value=},
                                    new GridColumns { Title = "Mã",Name = "Code",Type = "Label"},
                                    new GridColumns { Title = "Tên", Name = "Name",Type = "Label"},
                                    new GridColumns { Title = "Nhóm",Name = "Group",Type = "Label"},
                                    new GridColumns { Title = "Ghi chú",Name = "Note",Type = "Label"},
                                    new GridColumns { Title = "Trạng thái",Name = "Status"}},
                              "ListtypeId", Model.Page, Model.NumerRecordPerPage)%>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td colspan="5" align="right">
                <%=Html.Paging(1, 10, Model.TotalRecord)%> 
            </td>
        </tr>                         
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td colspan="5" align="left">
                <input type="button" name="btnFilter" value="Thêm mới(Alt+N)" class="button_addnew" onclick="btnAddOnclick('/Listtype/Detail/View','ListtypeId');"/>
                <input type="button" name="btnFilter" value="Xóa bỏ(Alt+X)" class="button_delete" onclick="BtnDelOnClick('/Listtype/Delete','ListSelected','ListtypeId');"/>                
            </td>
        </tr>                         
    </table>
<% } %>
</asp:Content>

